﻿namespace NMortgage.UI.Tests
{
    using System;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    using NMortgage.UI.Events;

    [TestClass]
    public class CancelEventTest
    {
        #region Methods

        [TestMethod]
        public void CancelEventConstructorTest()
        {
            object source = null;
            CancelEvent target = new CancelEvent(source);
            Assert.IsNotNull(target);
        }

        [TestMethod]
        public void SourceTest()
        {
            object expected = new object();
            CancelEvent target = new CancelEvent(expected);

            object actual;

            actual = target.Source;
            Assert.AreSame(expected, actual);
        }

        #endregion Methods
    }
}